<template>
  <div id="app">

    <div v-if="isShow">
      <van-skeleton title :row="5" />
    </div>

    <div v-else>
      <router-view v-slot="{ Component }">
        <keep-alive>
          <component :is="Component" />
        </keep-alive>
      </router-view>
    </div>


  </div>
</template>

<script setup>
import { ref , watch } from 'vue';
import { useRoute, useRouter } from 'vue-router'
const router = useRouter()
const route = useRoute()
let isShow = ref(true)

watch(() => path , () => {
  setTimeout(() => {
    isShow.value = false
  }, 500)
})
</script>

<style lang="scss" scoped></style>